Effect of Rashba and Dresselhaus spin–orbit coupling on supercurrent rectification and magnetochiral anisotropy of ballistic Josephson junctions