Man sentenced for attempted GBH and other offences in Newbury