Elastic beam on a rigid frictional foundation under monotonic and cyclic loading